.home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  .home-bg {
    width: 70%;
    max-width: 1200px;
    margin-bottom: 20px;
  }

  /* 悬浮球的样式 */
  #floating-ball {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100; /* 确保悬浮球在其他元素之上 */
    cursor: pointer;
  }
  #floating-ball .ball-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* 悬浮球大小 */
    height: 50px;
    background-color: #0864d4; /* 设置背景颜色 */
    border-radius: 50%; /* 设置圆形 */
    box-shadow: 0 2px 5px rgb(0 0 0 / 20%); /* 设置阴影 */
  }
  #chat-box {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 20%);
  }
  .chat-window {
    padding: 10px;
  }
  .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .chat-content {
    height: 250px;
    overflow-y: auto;
  }
  .chat-content ul {
    padding: 0;
    list-style: none;
  }
  .chat-content li {
    margin-bottom: 10px;
  }
  .message {
    padding: 10px;
    border-radius: 5px;
  }
  .aiMessage {
    text-align: left;
    background-color: #f0f0f0;
  }
  .userMessage {
    text-align: right;
    background-color: #e0f2ff;
  }
  .chat-input {
    display: flex;
    align-items: center;
    margin-top: 10px;
  }
  .chat-input input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #cccccc;
    border-radius: 5px;
  }
  .chat-input button {
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    background-color: #0864d4;
    border: none;
    border-radius: 5px;
  }
}
